var sliderwidth="215px"
//Specify the slider's height
var sliderheight="100px"
//Specify the slider's slide speed (larger is faster 1-10)
var slidespeed=3
//configure background color:
slidebgcolor=""

//Specify the slider's images
var leftrightslide=new Array()
var finalslide=''
var leftrightslide1= new Array()
//images/
leftrightslide1[0]= "flyimage/1.jpg"
leftrightslide1[1]= "flyimage/2.jpg"
leftrightslide1[2]= "flyimage/3.jpg"
leftrightslide1[3]= "flyimage/4.jpg"
leftrightslide1[4]= "flyimage/5.jpg"
leftrightslide1[5]= "flyimage/6.jpg" 
leftrightslide1[6]= "flyimage/7.jpg"
leftrightslide1[7]= "flyimage/8.jpg" 
leftrightslide1[8]= "flyimage/0.jpg"
leftrightslide1[9]= "flyimage/9.jpg"
leftrightslide1[10]= "flyimage/10.jpg"
leftrightslide1[11]= "flyimage/11.jpg"
leftrightslide1[12]= "flyimage/12.jpg"
leftrightslide1[13]= "flyimage/13.jpg"
leftrightslide1[14]= "flyimage/14.jpg"



leftrightslide[0]='&nbsp;&nbsp;&nbsp;<a href="client.html"><img src="'+leftrightslide1[0]+'" border=0></a>'
leftrightslide[1]='&nbsp;&nbsp;&nbsp;<a href="client.html"><img src="'+leftrightslide1[1]+'" border=0></a>'
leftrightslide[2]='&nbsp;&nbsp;&nbsp;<a href="client.html"><img src="'+leftrightslide1[2]+'" border=0></a>'
leftrightslide[3]='&nbsp;&nbsp;&nbsp;<a href="client.html"><img src="'+leftrightslide1[3]+'" border=0></a>'
leftrightslide[4]='&nbsp;&nbsp;&nbsp;<a href="client.html"><img src="'+leftrightslide1[4]+'" border=0></a>'
leftrightslide[5]='&nbsp;&nbsp;&nbsp;<a href="client.html"><img src="'+leftrightslide1[5]+'" border=0></a>'
leftrightslide[6]='&nbsp;&nbsp;&nbsp;<a href="client.html"><img src="'+leftrightslide1[6]+'" border=0></a>'
leftrightslide[7]='&nbsp;&nbsp;&nbsp;<a href="client.html"><img src="'+leftrightslide1[7]+'" border=0></a>'
leftrightslide[8]='&nbsp;&nbsp;&nbsp;<a href="client.html"><img src="'+leftrightslide1[8]+'" border=0></a>'
leftrightslide[9]='&nbsp;&nbsp;&nbsp;<a href="client.html"><img src="'+leftrightslide1[9]+'" border=0></a>'
leftrightslide[10]='&nbsp;&nbsp;&nbsp;<a href="client.html"><img src="'+leftrightslide1[10]+'" border=0></a>'
leftrightslide[11]='&nbsp;&nbsp;&nbsp;<a href="client.html"><img src="'+leftrightslide1[11]+'" border=0></a>'
leftrightslide[12]='&nbsp;&nbsp;&nbsp;<a href="client.html"><img src="'+leftrightslide1[12]+'" border=0></a>'
leftrightslide[13]='&nbsp;&nbsp;&nbsp;<a href="client.html"><img src="'+leftrightslide1[13]+'" border=0></a>'
leftrightslide[14]='&nbsp;&nbsp;&nbsp;<a href="client.html"><img src="'+leftrightslide1[14]+'" border=0></a>'



////NO NEED TO EDIT BELOW THIS LINE////////////

var copyspeed=slidespeed
	
	leftrightslide=leftrightslide.join(" <br>") 
	var iedom=document.all||document.getElementById

	if (iedom)
		document.write('<span  id="temp" style="visibility:hidden;position:absolute;left:-10px;top:-4900px;" >'+leftrightslide+'</span>')


var actualheight=''
var cross_slide, ns_slide

function fillup(){
	if (iedom){
		cross_slide=document.getElementById? document.getElementById("test2") : document.all.test2
		cross_slide2=document.getElementById? document.getElementById("test3") : document.all.test3
		cross_slide.innerHTML=cross_slide2.innerHTML=leftrightslide
		actualheight=document.all? cross_slide.offsetHeight: document.getElementById("temp").offsetHeight
		cross_slide2.style.top=actualheight+5+"px"
	}
	else if (document.layers){
		ns_slide=document.ns_slidemenu.document.ns_slidemenu2
		ns_slide2=document.ns_slidemenu.document.ns_slidemenu3
		ns_slide.document.write(leftrightslide)
		ns_slide.document.close()
		actualheight=ns_slide.document.height
		ns_slide2.top=actualheight+20
		ns_slide2.document.write(leftrightslide)
		ns_slide2.document.close()
	}
	lefttime=setInterval("slideup()",30)
}

window.onload=fillup

function slideup(){
if (iedom){
	if (parseInt(cross_slide.style.top)>(actualheight*(-1)+50))
	cross_slide.style.top=parseInt(cross_slide.style.top)-copyspeed+"px"
	else
	cross_slide.style.top=parseInt(cross_slide2.style.top)+actualheight+5+"px"
	
	if (parseInt(cross_slide2.style.top)>(actualheight*(-1)+50))
	cross_slide2.style.top=parseInt(cross_slide2.style.top)-copyspeed+"px"
	else
	cross_slide2.style.top=parseInt(cross_slide.style.top)+actualheight+5+"px"
}
else if (document.layers){
	if (ns_slide.top>(actualheight*(-1)+50))
	ns_slide.top-=copyspeed
	else
	ns_slide.top=ns_slide2.top+actualheight+30

	if (ns_slide2.top>(actualheight*(-1)+50))
	ns_slide2.top-=copyspeed
	else
	ns_slide2.top=ns_slide.top+actualheight+30
	}
}


if (iedom||document.layers){
with (document){
	var h = $('.ContentTable').height();
	h+='px';
	//alert(h);
	document.write('<table border="0" height="'+h+'" cellspacing="0" cellpadding="0"><tr><td>')
	if (iedom){
	write('<div class="Slide" style="position:relative;width:'+sliderwidth+';height:'+h+';overflow:hidden">')
	write('<div style="position:absolute;width:'+sliderwidth+';height:'+h+';background-color:'+slidebgcolor+'" onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed">')
	write('<div id="test2" style="position:absolute;left:0px;top:0px"></div>')
	write('<div id="test3" style="position:absolute;top:0px;left:0px"></div>')
	write('</div></div>')
	}
	else if (document.layers){
	write('<ilayer width='+sliderwidth+' height='+h+' name="ns_slidemenu" bgColor='+slidebgcolor+'>')
	write('<layer name="ns_slidemenu2" left=0 top=0 onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed"></layer>')
	write('<layer name="ns_slidemenu3" left=0 top=0 onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed"></layer>')
	write('</ilayer>')
	}
	document.write('</td></tr></table>')
	}
}

$( document ).ready(function() {
	var h = $('.ContentTable').height();
	h+='px';
	$('.Slide').css('height',h)
});
